#include<iostream>
#include<cstring>
using namespace std;

int main(){
    char arr1[110],arr2[110];
    cin>>arr1;
    int size=strlen(arr1);
    for(int i=0;i<size-1;i++){
        arr2[i]=arr1[i]+arr1[i+1];
    }
    arr2[size-1]=arr1[0]+arr1[size-1];

    cout<<arr2<<endl;
}
